package com.vhall.component.dao.livecolumn;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.data.vo.DpLiveViewDataResponseVO;
import com.vhall.component.entity.data.vo.UserParamVO;
import com.vhall.component.entity.livecolumn.entity.LiveColumnEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 直播栏目表 Mapper 接口
 * </p>
 *
 * @author wangxing
 * @since 2023-08-05
 */
@Mapper
@Repository
public interface LiveColumnMapper extends BaseMapper<LiveColumnEntity> {

    List<LiveColumnEntity> selectListForColumnList(@Param("type") Integer type, @Param("orgCode") String orgCode);

    List<LiveColumnEntity> selectListForAttentionColumnList(@Param("userCode") String userCode);

    List<DpLiveViewDataResponseVO> selectPageLiveViewData(UserParamVO reqVO);

    /**
     * 统计关联栏目的房间数量
     * @param reqVO
     * @return
     */
    List<DpLiveViewDataResponseVO> selectColumnListRoomCount(UserParamVO reqVO);

    /**
     * 统计栏目下房间的观看数据
     * @param reqVO
     * @return
     */
    List<DpLiveViewDataResponseVO> selectColumnListViewCount(UserParamVO reqVO);
}
